From: Ivan Molodetskikh Date: Wed, 9 Feb 2022 07:00:07 +0000 (+0300) Subject: status/remote-access: Don't show recording icon for screenshot UI casts X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~36 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2949244d72d3fdba48436bc46a9a5e0c05c188d8;p=gnome-shell.git status/remote-access: Don't show recording icon for screenshot UI casts If there's only a single recording and it is the screenshot UI recording, don't show the icon, because it's already displayed by the new panel. Part-of: --- diff --git a/js/ui/status/remoteAccess.js b/js/ui/status/remoteAccess.js index 605ad69c6..992215ad3 100644 --- a/js/ui/status/remoteAccess.js +++ b/js/ui/status/remoteAccess.js @@ -58,7 +58,15 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator { } _isRecording() { - return [...this._handles].some(handle => handle.is_recording); + const recordingHandles = + [...this._handles].filter(handle => handle.is_recording); + + // Screenshot UI screencasts have their own panel, so don't show this + // indicator if there's only a screenshot UI screencast. + if (Main.screenshotUI.screencast_in_progress) + return recordingHandles.length > 1; + + return recordingHandles.length > 0; } _sync() {